{include file="event/_top.tpl" homepage="false"}

<div class="vid-wrap">
<div class="pad20top">
<div class="title-vid"><span class="title2">Event Details</span></div>
<div class="vid-wrap4">
<div class="depk1 mar10top mar10bottom">
<table>
	<tr>
		<td width="110" style="font-weight: bold; padding: 5px;">Categories</td>
		<td>{$event->sports|default:'not provided'|capitalize}</td>
	</tr>
	<tr>
		<td style="font-weight: bold; padding: 5px;">Host</td>
		<td>{$event->details->host|default:'not provided'}</td>
	</tr>
	<tr>
		<td style="font-weight: bold; padding: 5px;">Location</td>
		<td>{$event->location|default:'not provided'}</td>
	</tr>
	<tr>
		<td style="font-weight: bold; padding: 5px;">Contact</td>
		<td>{$event->details->contact|email:$event->details->contact_email|default:'not
		provided'}</td>
	</tr>
	<tr>
		<td style="font-weight: bold; padding: 5px;">Website</td>
		<td><a href="{$event->details->website|website:'link'}">{$event->details->website|website:'label'}</a></td>
	</tr>
</table>
<h3 style="margin-top:10px;float: right;"><a href="{$REAL_ROOT}vote/{$event->id|crc}/"
	rel="nofollow"
	style="border: 1px solid #aaa; background: #ccc; padding: 10px; font-weight: bold;">Vote
for this event</a></h3>
</div>
</div>
</div>
</div>



<div class="vid-wrap">
<div class="pad20top">
<div class="title-vid"><span class="title2">Comments</span></div>
<div class="vid-wrap4">
<div class="depk1">{if $event->comments}
<table width="100%">
	{foreach from=$event->comments item=comment}
	<tr style="background:#{cycle values='ffc,fef'};">
		<td style="padding:5px;text-align:right;width:100px;white-space:nowrap;">On {$comment->created|date_format} <span style="font-weight: bold;">{$comment->name}:</span></td>
		<td style="padding:5px;">{$comment->message}</td>
	</tr>
	{/foreach}
</table>
{else} No comments yet. {/if} <br />

<fieldset style="border: 1px dotted #777; padding: 10px;"><legend
	style="padding: 0 10px 0 10px; font-weight: bold;">Your comments for this event</legend>
<form action="" method="post"><input type="hidden" name="submit"
	value="1" /> {if $errors} <!-- display errors here if any -->
<fieldset
	style="color: #f00; font-weight: bold; border: 1px solid #f00; padding: 10px;">
<legend style="padding: 0 10px 0 10px;">Error</legend> {foreach
from=$errors item=error} &bull {$error} <br />
{/foreach}</fieldset>
<br />
{/if}
<table width="100%">
	<tr>
		<td width="100" style="text-align: right; padding: 10px;">Your name:</td>
		<td><input type="text" name="name" size="30"
			value="{$smarty.post.name|default:$smarty.cookies.p1c_name}" style="width: 200px;" /></td>
	</tr>
	<tr>
		<td style="text-align: right; padding: 10px;">Message:</td>
		<td style="vertical-align: top;"><textarea name="message" rows="3"
			cols="10" style="width: 203px;">{$smarty.post.message}</textarea></td>
	</tr>
	<tr>
		<td style="text-align: right; padding: 10px;">Security Code:</td>
		<td><img src="{$REAL_ROOT}captcha/" /><br />
		<input type="text" name="security_code" style="width: 200px;" /><br /></td>
		<td><input type="submit" value="Post Comment" /></td>
	</tr>
</table>
</form>
</fieldset>
</div>
</div>
</div>
</div>
